import request from '@/utils/request'

// 查询物品领用单列表
export function listSuppliesForm(query) {
  return request({
    url: '/service/suppliesForm/list',
    method: 'get',
    params: query
  })
}

// 查询物品领用单详细
export function getSuppliesForm(id) {
  return request({
    url: '/service/suppliesForm/' + id,
    method: 'get'
  })
}

// 新增物品领用单
export function addSuppliesForm(data) {
  return request({
    url: '/service/suppliesForm',
    method: 'post',
    data: data
  })
}

// 修改物品领用单
export function updateSuppliesForm(data) {
  return request({
    url: '/service/suppliesForm',
    method: 'put',
    data: data
  })
}

// 删除物品领用单
export function delSuppliesForm(id) {
  return request({
    url: '/service/suppliesForm/' + id,
    method: 'delete'
  })
}
